<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/8/26
 * Time: 16:26
 */
namespace app\common\model;
use think\Model;
use think\Db;

class Alipay extends Model
{
    //支付宝三方应用配置
    public function isv_alipay(){
        return $config = [
            'appId'=>'2021002169667784',
            'rsaPrivateKey'=>'MIIEpQIBAAKCAQEAtOdwvog5FM37JQ8aQub8YLWLIuqpiBOSQEYwvEd4/yiS4cyrCikuu3oDDm4OzQ8Ronn3zhNeQnbArP2nSV2zLarRh8CFXyYUevUSwUlYEYDonyTya9FOn9wX3d5Nt6tw+OGIb5fsbUS5jhjzyLi1xhLwGIPfQTZMflFG4dL2qsf29cxvggTAZ4Nr5aTbn2erGJZG5x9vZXNdM42uYwl4jcdTNr1kfljXGGOPYlv4PpR+gAmaIxCyVqYkHuuRqVItKFohpVx0EQc8XwgD5NfN+8Y9WiWp5IkT5QQNxwBRcqs+9NqXpqwDumPm3sxuA9alxiXnjkjJMeuEasv7SX57TwIDAQABAoIBAQCQtH0L+51lVerp1u3TzD7fAPj+AiWAEt+vCDZdtPJFcGgltHiwlQarskqVlVXDk6UwiU2+iuGgWqt+9RuGZSw5gGVAqLBGzwgc3sKU2B1ZSvtIqd48fl3dI8n3kKYsIDgq7QUc9rKJKSsgTjdbPN0yRt3FTl8cI9oGRO9lHkJvklBKG4mcH+sIdL65rCNYnzWkmm1ze/bxBmnhWhM+PSP327KNb3IYslLtN64A+XsAbNEbniIlpu35Bigz6nlBiu27QxQW+KKtqWkLgMNMpAsXCug3VOEFSLPlcjGcWKqL7hEXNo8A4SVFn9Hwx3iouGqeHDE+4MNLB/EKpdq0pJWBAoGBAPBGs5JPUCd1JJFnH4UopkTu9gYux2Fvs0dJ6Zck9Et/cfKRjhh0WXiU2RWPH1O88ao1dO7l1rYr8ikQ3n1QLgArD4lQHCxdSYikVqiHAwySB57ipTmCvFmOrqiBhKt9Olb6BVF1ofh4Pp2OBVK8/LBvbaopxUgu1T6MEpEAulbBAoGBAMC+FwE/pg3Wd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4qE8LME5CwXadQIDAQAB',
        ];
    }

    //随机订单号
    public function order_sn(){
        return date('YmdHis') . str_pad(mt_rand(1, 99999), 5, '0', STR_PAD_LEFT);
    }


}